import javax.swing.table.*;
import java.util.*;

public class MyTableModel extends DefaultTableModel {
	public void sort() {
		Collections.sort(dataVector, new Comparator<Vector>() {
  			public int compare(Vector row1, Vector row2){
    			return (((String)row1.elementAt(1)).substring(4)).compareTo(((String)row2.elementAt(1)).substring(4));
   			}
		});
		fireTableDataChanged();
	}
}
